<template>
	<view class="container">
		<view class="form-item">
			<view class="label">帮助内容:</view>
			<textarea 
				class="textarea" 
				placeholder="请输入收件人的地址联系方式等"
			/>
		</view>
		
		<view class="form-item">
			<view class="label">取货地点:</view>
			<input 
				class="input" 
				placeholder="*号楼-***号"
			/>
		</view>
		
		<view class="form-item">
			<view class="label">快递商家:</view>
			<input 
				class="input" 
				placeholder="请输入快递商家名称"
				v-model="formData.courier"
			/>
		</view>
		
		<view class="form-item">
			<view class="label">备注信息:</view>
			<input 
				class="input" 
				placeholder="所有人可见"
			/>
		</view>
		
		<view class="form-item">
			<view class="label">金额</view>
			<input 
				class="input" 
				type="number" 
				v-model="formData.amount"
				@input="formData.amount = parseFloat(formData.amount)"
			/>
		</view>
		
		<view class="tips">帮助内容仅接单的同学可见,安全放心!</view>
		
		<view class="price">
			<text>跑腿费</text>
			<text class="amount">{{ parseFloat(formData.amount) + 10 }}元</text>
		</view>
		
		<button class="submit-btn" type="primary">立即发布</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formData: {
					content: '',
					address: '',
					courier: '',
					remark: '',
					amount: 0
				}
			}
		},
		methods: {
			// 可以添加表单提交等方法
			
		}
	}
</script>

<style>
	.container {
		padding: 20rpx;
	}
	.form-item {
		margin-bottom: 20rpx;
	}
	.label {
		font-size: 28rpx;
		margin-bottom: 10rpx;
	}
	.textarea {
		width: 100%;
		height: 200rpx;
		border: 1rpx solid #ddd;
		border-radius: 8rpx;
		padding: 20rpx;
		box-sizing: border-box;
	}
	.input {
		width: 100%;
		height: 80rpx;
		border: 1rpx solid #ddd;
		border-radius: 8rpx;
		padding: 0 20rpx;
		box-sizing: border-box;
	}
	.tips {
		color: #999;
		font-size: 24rpx;
		text-align: center;
		margin: 20rpx 0;
	}
	.price {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 20rpx 0;
	}
	.amount {
		color: #f00;
		margin-left: 10rpx;
	}
	.submit-btn {
		width: 90%;
		margin: 40rpx auto;
	}
</style>
